﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 百科全书内容
    /// </summary>
    [Table("sys_EncyclopediaContent"), Comment("百科全书内容"),Index(nameof(GroupId))]
    public class EncyclopediaContent : EfEntity
    {
        /// <summary>
        /// 分组ID
        /// </summary>
        [Comment("分组ID")]
        public long GroupId { get; set; }
        /// <summary>
        /// 问题
        /// </summary>
        [Comment("问题"),MaxLength(2000)]
        public string Question { get; set; }

        /// <summary>
        /// 答案
        /// </summary>
        [Comment("答案")]
        public string Answer { get; set; }

        /// <summary>
        /// 问题_维语
        /// </summary>
        [Comment("问题"), MaxLength(2000)]
        public string UighurQuestion { get; set; }

        /// <summary>
        /// 答案_维语
        /// </summary>
        [Comment("答案")]
        public string UighurAnswer { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool IsDelete { get; set; }
    }
}
